package com.learn.eduorder.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.learn.eduapi.entity.order.PayOrder;
import com.learn.eduapi.entity.order.PayOrderRecord;
import com.learn.eduapi.entity.order.UserCourseOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderService {
    int insertOrder(UserCourseOrder userCourseOrder);
    int insertPayOrder(PayOrder payOrder);
    int insertPayOrderRecord(PayOrderRecord payOrderRecord);

    int updateUserCourseOrder(UserCourseOrder userCourseOrderNew, Wrapper<UserCourseOrder> userCourseOrderOld);
    int updatePayOrder(PayOrder payOrder);
    List<PayOrder> selectByUserId(@Param("userId") Integer userId);
    PayOrderRecord selectByOrderId(@Param("orderNo")Integer orderNo);
    int deleteOrder(String orderNo);
    int updatePayOrderRecord(PayOrderRecord payOrderRecord);


}
